<template>
  <div class="app-container">
    <el-form ref="form"
             :model="form"
             :rules="rules"
             label-width="120px"
             style="padding-left: 50px;padding-right: 50px;">
      <el-row style="margin-top: 20px;">
        <el-col :span="12">
          <el-form-item label-width="60px" label="Client" prop="clientName">
            <el-input v-model="form.clientName" placeholder="" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="Fee note no." prop="feeNo">
            <el-input disabled v-model="form.feeNo" placeholder="" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label-width="60px" label="Address" prop="addressLine1">
            <el-input v-model="form.addressLine1" placeholder="" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="Date" prop="paidDate">
            <el-date-picker
              v-model="form.paidDate"
              type="date"
              placeholder="">
            </el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label-width="60px" label="States" prop="status">
            <el-input disabled v-model="form.status" placeholder="" />
            <!--<el-select v-model="form.status" placeholder="">-->
              <!--<el-option-->
                <!--v-for="dict in dict.type.sys_note_state"-->
                <!--:key="dict.value"-->
                <!--:label="dict.label"-->
                <!--:value="dict.value"-->
              <!--&gt;</el-option>-->
            <!--</el-select>-->
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label-width="60px" label="Attn" prop="attn">
            <el-input v-model="form.attn" placeholder="" />
          </el-form-item>
        </el-col>
      </el-row>
      <div ref="pdf">
        <div style="height: 20px;">

        </div>

        <el-radio-group v-model="form.feeType" style="margin-bottom: 20px;">
          <el-radio-button label="Standard Fee">Standard Fee</el-radio-button>
          <el-radio-button label="Blank Format">Blank Format</el-radio-button>
        </el-radio-group>
        <div>
          <span
            style="color: #99a9bf;
            font-size: 18px;
            padding-top: 20px;
            padding-left: 5px;">
            Jobslink Recruitment fee
          </span>
        </div>
        <div style="margin-top: 8px;
        border-top: 8px solid #8c939d;
        border-bottom: 8px solid #8c939d;">
          <el-form
            label-width="80px"
            label-position="left"
            style="padding-left: 20px;">
            <el-row v-if="form.feeType !== 'Standard Fee'" style="margin-top: 10px;">
              <el-col :span="16" style="margin-right: 15px;">
                <!--<el-form-item class="noteAdd" label-width="200px" label="Fee for the introduction of:" prop="contactPerson">-->
                <!--<el-input v-model="form.contactPerson" placeholder="" style="width: 260px;" />-->
                <!--</el-form-item>-->
                <el-form-item label-width="0px">
                  <editor v-model="form.feeDesc" :min-height="392"/>
                </el-form-item>
              </el-col>
              <el-col :span="6">
                <el-form-item label-width="100px" label="Amount(HKD)" prop="amount">
                  <el-input v-model="amount" placeholder="" style="width: 160px;" />
                </el-form-item>
                <el-form-item label-width="100px" label="Discounted" prop="discounted">
                  <el-input v-model="discounted" placeholder="" style="width: 160px;" />
                </el-form-item>
                <el-form-item label-width="100px" label="Net amount" prop="feeAmt">
                  <el-input disabled v-model="form.feeAmt" placeholder="" style="width: 160px;" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row v-if="form.feeType == 'Standard Fee'" style="margin-top: 10px;">
              <el-col :span="16">
                <el-form-item class="noteAdd" label-width="200px" label="Fee for the introduction of:" prop="contactPerson">
                  <el-input v-model="form.contactPerson" placeholder="" style="width: 260px;" />
                </el-form-item>
              </el-col>
              <el-col :span="6">
                <el-form-item label-width="100px" label="Amount(HKD)" prop="amount">
                  <el-input disabled v-model="amount" placeholder="" style="width: 160px;" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row v-if="form.feeType == 'Standard Fee'">
              <el-col :span="16">
                <el-form-item class="noteAdd" label-width="130px" label="For the position:" prop="positionTitle">
                  <el-input v-model="form.positionTitle" placeholder="" style="width: 260px;" />
                </el-form-item>
              </el-col>
              <el-col :span="6">
                <el-form-item label-width="100px" label="Discounted" prop="discounted">
                  <el-input disabled v-model="discounted" placeholder="" style="width: 160px;" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row v-if="form.feeType == 'Standard Fee'">
              <el-col :span="16">
                <el-form-item class="noteAdd" label-width="120px" label="Report date:" prop="reportDate">
                  <el-date-picker
                    v-model="form.reportDate"
                    type="date"
                    placeholder="">
                  </el-date-picker>
                </el-form-item>
              </el-col>
              <el-col :span="6">
                <el-form-item label-width="100px" label="Net amount" prop="feeAmt">
                  <el-input disabled v-model="form.feeAmt" placeholder="" style="width: 160px;" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row v-if="form.feeType == 'Standard Fee'">
              <el-col :span="4">
                <el-select
                  :disabled="form.status == 'Void' || form.status == 'Pending' || form.status == 'Paid'"
                  @change="changeFeeValueOption"
                  class="select"
                  v-model="form.monType"
                  placeholder="select">
                  <el-option
                    style="font-weight: bold;"
                    v-for="item in options"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value">
                  </el-option>
                </el-select>
              </el-col>
              <el-col :span="3">
                <el-form-item class="noteAdd" label-width="10px" prop="amount">
                  <el-input
                    :disabled="form.status == 'Void' || form.status == 'Pending' || form.status == 'Paid'"
                    v-model="amount"
                    placeholder=""
                    style="width: 100px;" />
                </el-form-item>
              </el-col>
              <el-col :span="1" v-show="form.monType == 2">
                <div style="display: flex;height: 100%;justify-content: center;">
                  <span style="font-weight: bold;margin-top: 12px;">X</span>
                </div>
              </el-col>
              <el-col :span="4" v-show="form.monType == 2">
                <el-select
                  :disabled="form.status == 'Void' || form.status == 'Pending' || form.status == 'Paid'"
                  @change="changeFeeValueOptionYear"
                  class="select"
                  v-model="form.yearType"
                  placeholder="select">
                  <el-option
                    style="font-weight: bold;"
                    v-for="item in optionsYear"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value">
                  </el-option>
                </el-select>
              </el-col>

              <!--<el-col :span="12">-->
              <!--<el-form-item class="noteAdd" label-width="30px" label="or" prop="salaryDetail">-->
              <!--<el-input v-model="form.salaryDetail" placeholder="" style="width: 200px;" />-->
              <!--</el-form-item>-->
              <!--</el-col>-->
            </el-row>
            <el-row v-if="form.feeType == 'Standard Fee'">
              <el-col :span="8">
                <el-form-item
                  class="noteAdd"
                  label-width="210px"
                  label="Jobslink's recruitment fee at"
                  prop="discounted">
                  <el-input
                    :disabled="form.status == 'Void' || form.status == 'Pending' || form.status == 'Paid'"
                    v-model="discounted"
                    placeholder=""
                    style="width: 80px;" />
                </el-form-item>
              </el-col>
              <el-col :span="1">
                <el-form-item
                  class="noteAdd"
                  label-width="50px"
                  label="% of "
                  style="margin-left: 0px;">
                </el-form-item>
              </el-col>
              <el-col :span="4">
                <el-select
                  :disabled="true"
                  class="select"
                  v-model="form.monType"
                  placeholder="select">
                  <el-option
                    style="font-weight: bold;"
                    v-for="item in options"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value">
                  </el-option>
                </el-select>
              </el-col>
            </el-row>
            <el-row
              v-if="form.feeType == 'Standard Fee'">
              <el-col :span="24">
                <el-form-item label-width="170px" label="End of guarantee date:" prop="guCount">
                  <el-select
                    :disabled="form.status == 'Void' || form.status == 'Pending' || form.status == 'Paid'"
                    v-model="form.guCount"
                    placeholder=""
                    style="width: 80px;">
                    <el-option
                      v-for="dict in dict.type.sys_gu_count"
                      :key="dict.value"
                      :label="dict.label"
                      :value="dict.value"
                    ></el-option>
                  </el-select>
                  <span style="margin-left: 10px;">days</span>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item
                  label-width="200px"
                  label="Upload payment evidence"
                  prop="name">
                  <el-upload
                    :action="uploadUrl"
                    :on-preview="handlePreview"
                    :on-remove="handleRemove"
                    :before-remove="beforeRemove"
                    accept=".pdf,.doc,.docx"
                    name="file"
                    :headers="headers"
                    multiple
                    :limit="100"
                    ref="upload"
                    :on-exceed="handleExceed"
                    :on-success="handleFileSuccess"
                    :file-list="form.fileList">
                    <div style="
                      display: flex;
                      align-items: center;">
                      <i class="el-icon-upload" style="font-size: 35px;"></i>
                      <span style="
                      color: #99a9bf;
                      font-size: 15px;
                      margin-left: 2px;">Upload(Limited PDF)</span>
                    </div>
                  </el-upload>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="16">
                <el-form-item class="noteAdd" label-width="70px" label="Ref No. :" prop="refNo">
                  <el-input v-model="form.refNo" placeholder="" style="width: 260px;" />
                </el-form-item>
              </el-col>
            </el-row>
          </el-form>
        </div>
      </div>
      <div style="display: flex;width: 100%;">
        <!--<el-button-->
        <!--type="primary"-->
        <!--round-->
        <!--style="font-size: 12px;padding: 8px 12px;margin-top: 10px;"-->
        <!--@click="addJobs">Update</el-button>-->
        <!--<el-button-->
          <!--type="primary"-->
          <!--round-->
          <!--style="font-size: 12px;padding: 8px 12px;margin-top: 10px;"-->
          <!--@click="handleExport">Preview PDF</el-button>-->
        <el-button
          type="primary"
          round
          style="font-size: 12px;padding: 8px 26px;margin-top: 10px;"
          @click="submitForm">Approval</el-button>
        <el-button
          type="primary"
          round
          style="font-size: 12px;padding: 8px 26px;margin-top: 10px;"
          @click="submitFormNo">Reject</el-button>
        <!--<el-button-->
        <!--type="primary"-->
        <!--round-->
        <!--style="font-size: 12px;padding: 8px 12px;margin-top: 10px;"-->
        <!--@click="addJobs">Deleted</el-button>-->
      </div>
      <!--<div>-->
        <!--<p style="color: #8c939d;font-size: 15px;margin-top: 30px;">Download fee note</p>-->
      <!--</div>-->
      <!--<div style="display: flex;width: 100%;margin-top: 20px">-->
        <!--<el-button type="primary" round-->
                   <!--style="font-size: 12px;padding: 8px 22px;" @click="toHr">To HR</el-button>-->
        <!--<el-button type="primary" @click="toAc" round-->
                   <!--style="font-size: 12px;padding: 8px 22px;margin-left: 10px;">To AC</el-button>-->
      <!--</div>-->
    </el-form>

  </div>
</template>

<script>
  import { listClient, getClient, delClient, addClient, updateClient } from "@/api/system/client";
  import { listNote, getNote, delNote, addNote, updateNote } from "@/api/system/note";
  import { getToken } from "@/utils/auth";
  import {downloadPDF} from "@/utils/pdf.js";



export default {
  name: "NoteAdd",
  dicts: ['sys_note_state', 'sys_gu_count'],
  data() {
    return {
      options: [{
        value: 1,
        label: 'Monthly salary'
      }, {
        value: 2,
        label: 'Annual salary'
      }],
      optionsYear: [{
        value: 1,
        label: '12months'
      }, {
        value: 2,
        label: '13months'
      }],
      value: '',
      tabPosition: 'Standard Fee',
      statusVoid: false,
      isSuccess: false,
      id: null,
      ids: [],
      amount: null,
      discounted: null,
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 总条数
      total: 0,
      // 【请填写功能名称】表格数据
      candidateList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      uploadUrl: "http://jobslink.megaslink.com/prod-api" + "/common/upload", // process.env.VUE_APP_BASE_API上传的图片服务器地址
      headers: {
        Authorization: "Bearer " + getToken()
      },
      formJobs: {},
      ruleJobs: {
        com: [
          { required: true, message: "company null", trigger: "blur" }
        ],
        title: [
          { required: true, message: "title null", trigger: "blur" }
        ],
      },
      // 查询参数
      queryParams: {
        id: null,
        pageNum: 1,
        pageSize: 10
      },
      queryParamsFee: {
        id: null,
        pageNum: 1,
        pageSize: 10,
        clientId: null,
        feeNo: null,
        clientName: null,
        addressLine1: null,
        addressLine2: null,
        contactPerson: null,
        canname: null,
        positionTitle: null,
        reportDate: null,
        feePercent: null,
        endOfGuDate: null,
        feeAmt: null,
        status: null,
        createUserId: null,
        paidDate: null,
        remark: null,
        finalsalary: null,
        amount: null,
        discounted: null,
        salaryDetail: null,
        filePath: null,
        guCount: null,
        refNo: null
      },
      fileData: {name: 'food.jpeg', url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'},
      // 表单参数
      form: {
        id: null,
        clientId: null,
        feeNo: null,
        clientName: null,
        addressLine1: null,
        addressLine2: null,
        contactPerson: null,
        canname: null,
        attn: null,
        feeType: "Standard Fee",
        yearType: 1,
        monType: 1,
        positionTitle: null,
        reportDate: null,
        feePercent: null,
        endOfGuDate: null,
        feeAmt: null,
        status: null,
        createUserId: null,
        paidDate: null,
        checkDate: null,
        remark: null,
        finalsalary: null,
        amount: null,
        feeDesc: null,
        discounted: null,
        salaryDetail: null,
        filePath: null,
        fileList: [],
        fileListPath: [],
        guCount: null,
        refNo: null
      },
      formCompany: {
        id: null,
        name: null,
        industry: null,
        busiNature: null,
        address: null,
        coSize: null,
        contact1: null,
        pos1: null,
        tel11: null,
        tel12: null,
        email1: null,
        contact2: null,
        pos2: null,
        tel21: null,
        tel22: null,
        email2: null,
        lastAssignee: null,
        website: null,
        remark: null,
        shortName: null,
        filePath: null
      },
      // 表单校验
      rules: {
        email1: [
          { required: true, message: "email is null", trigger: "blur" }
        ],
        name: [
          { required: true, message: "name is null", trigger: "blur" }
        ],
        phone1: [
          { required: true, message: "phone is null", trigger: "blur" }
        ],
      }
    };
  },
  watch:{
    amount(newVal, oldVal){
      if (newVal != oldVal) {
        if (newVal != null && newVal != '' && newVal != undefined) {
          if (this.discounted != null && this.discounted != '' && this.discounted != undefined) {
            if (this.form.monType == 1) {
              this.form.feeAmt = newVal * this.discounted * 0.01;
            } else {
              if (this.form.yearType == 1) {
                this.form.feeAmt = newVal * this.discounted * 0.01 * 12;
              } else {
                this.form.feeAmt = newVal * this.discounted * 0.01 * 13;
              }
            }
          }
        }
      }
    },
    discounted(newVal, oldVal){
      if (newVal != oldVal) {
        if (newVal != null && newVal != '' && newVal != undefined) {
          if (this.amount != null && this.amount != '' && this.amount != undefined) {
            if (this.form.monType == 1) {
              this.form.feeAmt = newVal * this.amount * 0.01;
            } else {
              if (this.form.yearType == 1) {
                this.form.feeAmt = newVal * this.amount * 0.01 * 12;
              } else {
                this.form.feeAmt = newVal * this.amount * 0.01 * 13;
              }
            }

          }
        }
      }
    }
  },
  // 给Vue的实例注入数据，进行数据监听
  created() {
    this.queryParamsFee.id = this.$route.query.id;
    this.queryParams.id = this.$route.query.clientId;
    this.form.clientId = this.$route.query.clientId;
    console.log(this.queryParamsFee.id + ":" + this.queryParams.id);
    if (this.queryParamsFee.id == null ||
          this.queryParamsFee.id == '' ||
          this.queryParamsFee.id  == undefined) {
      this.getList();
    } else {
      this.getNodeFee();
    }
  },
  methods: {
    changeFeeValueOption(value){
      if (value == 1) {
        this.form.feeAmt = this.discounted * this.amount * 0.01;
      } else {
        if (this.form.yearType == 1) {
          this.form.feeAmt = this.discounted * this.amount * 0.01 * 12;
        } else {
          this.form.feeAmt = this.discounted * this.amount * 0.01 * 13;
        }
      }
    },
    changeFeeValueOptionYear(value){
      if (value == 1) {
        this.form.feeAmt = this.discounted * this.amount * 0.01 * 12;
      } else {
        this.form.feeAmt = this.discounted * this.amount * 0.01 * 13;
      }
    },
    handleExport(){
      downloadPDF(this.$refs.pdf)
    },
    orderCode() {
      var orderCode='';
      for (var i = 0; i < 6; i++) //6位随机数，用以加在时间戳后面。
      {
        orderCode += Math.floor(Math.random() * 10);
      }
      orderCode = orderCode;  //时间戳，用来生成订单号。new Date().getTime() + orderCode
      return orderCode;
    },
    removeSchool(index) {
      if (this.form.schoolList.length <= 1) {
        this.$modal.msgError("最少保留一个");
        return;
      }
      this.form.schoolList.splice(index, 1);
    },
    removeJobs(index) {
      if (this.form.ccompanyList.length <= 1) {
        this.$modal.msgError("最少保留一个");
        return;
      }
      this.form.ccompanyList.splice(index, 1);
    },
    handleRemove(file, fileList) {
      console.log(file);
      console.log(fileList);
      if (file.status == "success") {
        this.form.fileList = this.form.fileList.filter(item => {
          return !(item.name == file.name && item.url == file.url);
        } );
      }
      console.log(this.form.fileList);
    },
    handlePreview(file) {
      console.log(file);
      // 截取上传文件的后缀名
      let fileType = file.name.substring(file.name.lastIndexOf(".") + 1);
      console.log(fileType);
      // 判断文件名的类型，允许多种就判断多个
      if (fileType.toLocaleLowerCase() == 'pdf') {
        let Base64 = require('js-base64').Base64
        window.open('http://www.megaslink.com:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(this.form.filePath)));
      } else {
        this.$message.warning("文件类型必须为pdf,doc,docx格式")
        // 返回false 就不会执行上传操作了
        return false
      }
    },
    handleExceed(files, fileList) {
      // this.$message.warning(`当前限制只能上传 1 个文件或者删除重新上传`);
    },
    handleFileSuccess(response, file, fileList) {
      console.log(response);
      console.log(file);
      console.log(fileList);
      if (response.code == 200) {
        console.log("================" + response.url);
        this.form.filePath = response.url;
        this.form.fileList.push( {
            name: file.name,
            url: response.url
          }
        )
        console.log(this.form.fileList);
      } else {
        this.$message.warning(`上传失败`);
        // this.form.fileList.splice(this.form.fileList.length - 1, 1);
      }
      // fileList[0].response.url;

    },
    beforeRemove(file, fileList) {
      return this.$confirm(`确定移除 ${ file.name }？`);
    },
    /** 查询【请填写功能名称】列表 */
    getList() {
      this.$modal.loading("loading...");
      // this.$modal.closeLoading();
      listClient(this.queryParams).then(response => {
        this.candidateList = response.rows;
        if (this.candidateList != null) {
          this.formCompany = this.candidateList[0];
          this.form.clientName = this.formCompany.name;
          this.form.addressLine1 = this.formCompany.address;
          this.form.feeNo = "No." + this.form.clientId + this.orderCode();
          this.queryParams.id = this.formCompany.id;
          this.form.clientId = this.formCompany.id;
          this.form.status = "READY";
        }
      }).finally(fe => {
        this.$modal.closeLoading();
      });
    },
    getNodeFee() {
      this.$modal.loading("loading...");
      listNote(this.queryParamsFee).then(response => {
        if (response.rows != null) {
          this.form = response.rows[0];
          if (this.form.feeType == null || this.form.feeType == '') {
            this.form.feeType="Standard Fee";
          }
          this.amount = this.form.amount;
          this.discounted = this.form.discounted;
          this.form.fileList = [];
          if (this.form.filePath != null && this.form.filePath != '') {
            this.form.fileListPath = this.form.filePath.split(",");
            for (let i = 0; i < this.form.fileListPath.length; i++) {
              this.form.fileList.push({
                name: this.form.fileListPath[i].substring(this.form.filePath.lastIndexOf('/') + 1),
                url: this.form.fileListPath[i]
              });
            }
          }
        }
      }).finally(fe => {
        this.$modal.closeLoading();
      });
    },
    // 取消按钮
    toAc() {

    },
    toHr() {

    },
    // 表单重置
    reset() {
      this.form = {
        id: null,
        email1: null,
        email2: null,
        name: null,
        phone1: null,
        phone2: null,
        gender: null,
        salary: null,
        education: null,
        other: null,
        district: null,
        age: null,
        birthyear: null
      };
      this.resetForm("form");
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.id)
      this.single = selection.length!==1
      this.multiple = !selection.length
    },
    /** 提交按钮 */
    submitFormNo() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          this.form.filePath = '';
          if (this.form.fileList != null && this.form.fileList.length > 0) {
            for (let i = 0; i < this.form.fileList.length; i++) {
              if (i == (this.form.fileList.length - 1)) {
                this.form.filePath = this.form.filePath + this.form.fileList[i].url;
              } else {
                this.form.filePath = this.form.filePath + this.form.fileList[i].url + ",";
              }
            }
          }
          this.form.amount = this.amount;
          this.form.discounted = this.discounted;
          if (this.form.id != null) {
            this.form.status="Reject";
            updateNote(this.form).then(response => {
              this.$modal.msgSuccess("success");
              const obj = { path: "/note" };
              this.$tab.closeOpenPage(obj);
            });
          } else {
            addNote(this.form).then(response => {
              this.$modal.msgSuccess("success");
              const obj = { path: "/note" };
              this.$tab.closeOpenPage(obj);
            });
          }
        }
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          this.form.filePath = '';
          if (this.form.fileList != null && this.form.fileList.length > 0) {
            for (let i = 0; i < this.form.fileList.length; i++) {
              if (i == (this.form.fileList.length - 1)) {
                this.form.filePath = this.form.filePath + this.form.fileList[i].url;
              } else {
                this.form.filePath = this.form.filePath + this.form.fileList[i].url + ",";
              }
            }
          }
          this.form.amount = this.amount;
          this.form.discounted = this.discounted;
          if (this.form.id != null) {
            this.form.status="Pending";
            updateNote(this.form).then(response => {
              this.$modal.msgSuccess("success");
              const obj = { path: "/note" };
              this.$tab.closeOpenPage(obj);
            });
          } else {
            addNote(this.form).then(response => {
              this.$modal.msgSuccess("success");
              const obj = { path: "/note" };
              this.$tab.closeOpenPage(obj);
            });
          }
        }
      });
    }
  }
};
</script>
<style rel="stylesheet/scss" lang="scss">
  .noteAdd .el-input__inner {
    border-top-width: 0px;
    border-left-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 1px;
    /*outline: medium;*/
  }
</style>
